<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="top">
	<div id="nav-sample" class="navbar navbar-inverse" role="navigation">
		<div class="navbar-header">
			<a class="navbar-brand" href="#" title="回到首页">
			<c:choose>
				<c:when test="${not empty USER_SESSION.userInfo.id }">
					 HELLO
				</c:when>
				<c:otherwise>
					SEAHELLO
				</c:otherwise>
			</c:choose>
			</a>
		</div>
		<div class="collapse navbar-collapse">
			<ul class="nav navbar-nav nav-pills">
			<c:choose>
				<c:when test="${not empty USER_SESSION.userInfo.id }">
					<li class="dropdown">
						<a class="navbar-brand"><span class="glyphicon glyphicon-user"></span> ${USER_SESSION.userInfo.userName } </a>
						<ul class="dropdown-menu">
							<li><a href="invalidate">退出</a></li>
						</ul>
					</li>
					<!-- <li><a href="i/message"><span class="glyphicon glyphicon-envelope"></span>  消息</a></li> -->
				</c:when>
				<c:otherwise>
					<li><a href="login">请登录</a></li>
					<li><a href="register">注册</a></li>
				</c:otherwise>
			</c:choose>
			</ul>
			<!-- 
			<ul class="nav navbar-nav navbar-right">
				<li><a href="dev/resource"><span class="glyphicon glyphicon-edit"></span>  Resource</a></li>
			</ul>
			 -->
		</div>
	</div>
</div>

